package com.xs.gis.cover;

import org.locationtech.jts.geom.Geometry;
import org.locationtech.jts.io.ParseException;

import java.io.IOException;
import java.io.UnsupportedEncodingException;

public interface SimpleCover {

    /**
     * 数据转为空间数据
     * @param
     * @return
     */
    Geometry dataToGeometry(String  data) throws ParseException, IOException;

    /**
     *
     * @param geometry 空间数据
     */
    String  geometryToData(Geometry geometry) throws UnsupportedEncodingException;


}
